package com.dingreading.cloud.mall.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.mall.entity.DeliveryAddress;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface DeliveryAddressService extends IService<DeliveryAddress> {

    Page<DeliveryAddress> pageList(PageUtil pageUtil, String storeUid, String staffUid, String name, Integer status);

    /**
     * 批量修改状态
     *
     * @param storeUid
     * @param staffUid
     * @param id       id集合
     */
    void updateStatus(String storeUid, String staffUid, Long id);

    void deleteByStaffIdAndId(String staffUid, Long id);

    DeliveryAddress getDefault(String storeUid, String staffUid);

}
